<?php
/**
 * Created by PhpStorm.
 * User: geyouwen
 * Date: 16/8/30
 * Time: 下午11:25
 */

namespace Home\Controller;


use Think\Controller;

class AlbumController extends BaseController
{



    public function zone()
    {
        $album = I('album', 0, 'intval');
        if(!$album) $this->redirect(u('index/index'));
        $info = M('album')->where(array('id' => $album))->find();
        $this->assign('info', $info);
        $this->display();
    }



    public function index()
    {
        $where = array('status' => 1);
        $order = 'ordid asc';
        $list = $this->getpage(D('album'), $where, $order,C('PAGE_SIZE'));
        $this->assign('list', $list['list']);
        $this->assign('page', $list['page']);
        $this->display();
    }


}